package com.tensquare.friend.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.tensquare.friend.pojo.Friend;
import com.tensquare.friend.pojo.NoFriend;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

@Repository
public interface NoFriendDao extends BaseMapper<NoFriend> {
    @Select("SELECT * FROM tb_nofriend WHERE userid=#{userid} AND friendid=#{friendid}")
    public Friend findByUserIdAndFriendId(@Param("userid") String userid, @Param("friendid") String friendid);
}
